// 定义与Java中BaseResponse<T>对应的前端数据结构
export interface BaseResponse {
  code: string
  message: string
}

// 单个用户对象的ts类型
export interface Comment {
  id: number
  videoName?: string
  userName?: string
  parentId?: number
  topId?: number
  content: string
  createTime: string
}

export interface CommentAddRequest {
  videoId?: number
  userId?: number
  parentId?: number
  topId?: number
  content: string
}

export interface CommentQueryRequest {
  userName?: string
  videoName?: string
}

export interface CommentUpdateRequest {
  id: number
  videoId?: number
  userId?: number
  parentId?: number
  topId?: number
  content: string
}
export interface PageComment extends BaseResponse {
  data: {
    current?: number
    pages?: number
    records?: Array<Comment>
    size?: number
    total?: number
  }
}

export interface DeleteRequest {
  id: number
}
